package uml.FileIO;

public enum FileToken 
{
	BEGIN("Begin"),
	END("End"),
	EVENTID("EventId:"),
	CONTAINER("Container:"),
	LOCATION("Location:"),
	TEXT("Text:"),
	SIBLINGS("Siblings:"),
	CLASS("ClassType:"),
	ANCHOR("AnchorType:"),
	WHITEHEAD("WhiteHead:"),
	BLACKHEAD("BlackHead:"),
	WHITEDIAMOND("WhiteDiamond:"),
	BLACKDIAMOND("BlackDiamond:"),
	BEGINANCHORPOINTBLOCK("BeginAnchorPointBlock:"),
	ENDANCHORPOINTBLOCK("EndAnchorPointBlock:"),
	REGULAR_LINE("NonDashedLine:"),
	DASHED_LINE("DashedLine:"),
	NEWLINE ("NewLine:"), 
	NULL("Null")
	;
	String lexeme;
	FileToken(String s)
	{
		lexeme = s;
	}
	static FileToken matchToken(String lexemeToMatch)
	{
		for(FileToken token : FileToken.values())
			if(token.lexeme.equals(lexemeToMatch))
				return token;
		return null;
	}
}
